/*
 * Copyright/Licensing information.
 */

/* inclusion guard */
#ifndef __ECV_VI_IMAGE_H__
#define __ECV_VI_IMAGE_H__

/*
 * Glib includes
 */
#include <glib-object.h>
//#include <gio.h>

/*
 * Potentially, include other headers on which this header depends.
 */

#include <stdio.h>

#include "ecv_vi.h"

/*
 * Type macros.
 */
#define ECV_TYPE_VI_IMAGE                  (ecv_vi_image_get_type ())
#define ECV_VI_IMAGE(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), ECV_TYPE_VI_IMAGE, EcvVi_Image))
#define ECV_IS_VI_IMAGE(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ECV_TYPE_VI_IMAGE))
#define ECV_VI_IMAGE_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), ECV_TYPE_VI_IMAGE, EcvVi_ImageClass))
#define ECV_IS_VI_IMAGE_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), ECV_TYPE_VI_IMAGE))
#define ECV_VI_IMAGE_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), ECV_TYPE_VI_IMAGE, EcvVi_ImageClass))

typedef struct _EcvVi_Image        EcvVi_Image;
typedef struct _EcvVi_ImageClass   EcvVi_ImageClass;
typedef struct _EcvVi_ImagePrivate EcvVi_ImagePrivate;

struct _EcvVi_Image
{
  GObject parent_instance;

  /*< public >*/

  /*< private >*/
  EcvVi_ImagePrivate *priv;
};

struct _EcvVi_ImageClass
{
  EcvViClass parent_class;

  /* class members */
  /*< public >*/


  //------------------------------------------------
  /*                   virtual                    */
  void (*create) (EcvVi *self);
};

/* used by ECV_TYPE_VI_IMAGE */
GType ecv_vi_image_get_type (void);

/*
 * Method definitions.
 */

EcvVi_Image * 
ecv_vi_image_new (int width, int height, int bpp, char * file);


#endif /* __ECV_VI_IMAGE_H__ */
